//
//  NTESMediaCapture.h
//  Netease
//
//  Created by 王方伟 on 2017/8/24.
//  Copyright © 2017年 wfw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <NIMAVChat/NIMAVChat.h>

@interface NTESMediaCapture : NSObject
@property (copy, nonatomic) NIMNetCallVideoSampleBufferHandler videoHandler;
@property (assign, nonatomic) BOOL isLiveStream;
- (void)onLocalDisplayviewReady:(UIView *)displayView;

-(void)switchContainerToView:(UIView *)captureView;
/** 停止采集 */
- (void)stopVideoCapture;
/** 旋转摄像头 */
- (void)switchCamera;
/** 视频预览 */
- (void)startPreview:(NIMNetCallMediaType)type container:(UIView *)container handler:(void(^)(NSError * error))handler;

- (void)startLiveStreamHandler:(NIMNetCallMeetingHandler)handler;

- (void)setMeeting:(NIMNetCallMeeting*)meeting;
- (BOOL)isCameraBack;

- (void)stopLiveStream;
@end
